<html>
<head>
<title>My Form</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/bootstrap-theme.min.css">
<script type="text/javascript" src="<?php echo base_url();?>public/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>public/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>public/kindeditor/kindeditor-all-min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>public/kindeditor/lang/zh-CN.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>public/js/jquery.upload.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/style.css">
<script>
	var editor;
	KindEditor.ready(function(K) {
		editor = K.create("#content");
	});	
</script>
</head>
<body>
<div class="container" style="margin-top:50px">
	  <h3><?php echo $a;?>商品</h3>
	  <hr />
	<div class="row">
		<div class="form-group col-md-9 ">
			<form class="form-horizontal" action="" method="POST">
				<div class="form-group">
					<label class="col-sm-2 control-label">标题：</label>
				    <div class="col-sm-9">
				    <input type="text" name="title" class="form-control" value="<?php echo set_value('desc',$product->title);?>" >
				    	<?php echo form_error('title'); ?>
				    </div>
				</div>
				
			  	
			  	<div class="form-group">
				    <label class="col-sm-2 control-label ">描述：</label>
				    <div class="col-sm-9">
				    	<textarea  name="desc" rows=5 class="form-control"><?php echo set_value('desc',$product->desc); ?></textarea>
				    	<?php echo form_error('desc'); ?>
				    </div>
			  	</div>
			  	<div class="form-group">
				    <label class="col-sm-2 control-label">内容：</label>
				    <div class="col-sm-9">
				    	<textarea id="content" name="content" class="form-control"><?php echo set_value('content',$product->content); ?></textarea>
				    	<?php echo form_error('content'); ?>
				    </div>
			  	</div>
			  	<div class="col-sm-offset-2 col-sm-9">
			  		<input type="submit" value="提交" class="btn btn-success " />
			  		<a class="btn btn-info" href="<?php echo site_url('test_product/index') ?>">返回</a>
			  	</div>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
	
</script>
</body>
</html>
